package com.zf.lease.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rchuing.sis.common.annotation.Excel;
import com.rchuing.sis.common.core.domain.BaseEntity;

/**
 * 房间和契约关系对象 room_contract
 *
 * @author ruoyi
 * @date 2024-10-07
 */
@TableName(resultMap = "com.zf.lease.mapper.RoomContractMapper.RoomContractResult")
public class RoomContract extends BaseEntity
        {
private static final long serialVersionUID = 1L;

        /** 契约ID */
            @TableId(value = "contract_id",type = IdType.AUTO)
        private Long contractId;

        /** 房间ID */
            @TableId(value = "room_id",type = IdType.AUTO)
        private Long roomId;

        public void setContractId(Long contractId)
        {
            this.contractId = contractId;
        }

        public Long getContractId()
        {
            return contractId;
        }
        public void setRoomId(Long roomId)
        {
            this.roomId = roomId;
        }

        public Long getRoomId()
        {
            return roomId;
        }

@Override
public String toString() {
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("contractId", getContractId())
        .append("roomId", getRoomId())
            .toString();
}
        }